#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>

int depth;
void* start_add;

void Dig(int digging)
{
    if (digging < 0)
    {
        int where_are_we_3;
        printf("digging byte is %d", (int)((void*)&where_are_we_3 - start_add));
        return;
    }
    int where_are_we_1;
    if (digging == depth)
    {
        start_add = (void*)&where_are_we_1;
        printf("In depth %d, we are at %p \n", (depth - digging), start_add);
        Dig(digging - 1);
    }
    int where_are_we_2;
    printf("In depth %d, we are at %p \n", (depth - digging), (void*)&where_are_we_2);
    Dig(digging - 1);
}

int main()
{

    printf("Today we will dig: ");
    scanf("%d", &depth);

    printf("Let begin!\n");
    Dig(depth);
}